<template>
	<view>
		<view class="m1">
			<u-avatar :src="src" size="100"></u-avatar>
			<text style="margin-top: 40px; margin-left: 30px;">用户名：Jisoo</text>
		</view>
		<view class="m2" @click="toaddress">
			<u-icon name="level" style="float: left; margin-top: 5px; margin-right: 5px;"></u-icon>
			<text>地址管理</text>
			<u-icon name="arrow-right" style="float: right; margin-top: 5px;"></u-icon>
		</view>
		<u-line></u-line>
		<view class="m2" @click="tocollect">
			<u-icon name="level" style="float: left; margin-top: 5px; margin-right: 5px;"></u-icon>
			<text>我的收藏</text>
			<u-icon name="arrow-right" style="float: right; margin-top: 5px;"></u-icon>
		</view>
		<u-line></u-line>
		<view class="m2" @click="toindent">
			<u-icon name="level" style="float: left; margin-top: 5px; margin-right: 5px;"></u-icon>
			<text>我的订单</text>
			<u-icon name="arrow-right" style="float: right; margin-top: 5px;"></u-icon>
		</view>
		<u-line></u-line>
		<u-tabbar>
			<u-tabbar-item text="首页" icon="home" @click="tohome"></u-tabbar-item>
			<u-tabbar-item text="订单" icon="coupon" @click="toindent"></u-tabbar-item>
			<u-tabbar-item text="我的" icon="account-fill"></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src:'https://jisoo-01.oss-cn-shenzhen.aliyuncs.com/1692978306400.jpg'
			}
		},
		methods: {
			tohome(){
				uni.redirectTo({
					url:'/pages/other/takaway/takaway'
				})
			},
			toindent(){
				uni.redirectTo({
					url:'/pages/other/takaway/indent/indent'
				})
			},
			toaddress(){
				uni.navigateTo({
					url:'/pages/other/takaway/address/address'
				})
			},
			tocollect(){
				uni.navigateTo({
					url:'/pages/other/takaway/collect/collect'
				})
			},
			toindent(){
				uni.reLaunch({
					url:'/pages/other/takaway/indent/indent'
				})
			}
		}
	}
</script>

<style lang="scss">
.m1{
	font-size: 20px;
	margin-top: 20px;
	display: flex;
	height: 120px;
	border-bottom: 2px solid #ccc;
}
.m2{
	// display: flex;
	margin-top: 20px;
	margin-bottom: 20px;
}
</style>
